<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<ul>
    <li>1<a >删除</a></li>
    <li>2<a >删除</a></li>
    <li>3<a >删除</a></li>
    <li>4<a >删除</a></li>
    <li>5<a >删除</a></li>
</ul>
</body>
<script>
    var aA = document.getElementsByTagName('a');
    var oUl = document.getElementsByTagName('ul')[0];

    for(var i=0;i<aA.length;i++){
        aA[i].onclick = function () {
            oUl.removeChild(this.parentNode);
        }
    }

</script>
</html>